/*
 *  Copyright (C) 2011 felixtheripper <felixtheripper_AT_gmail.com>
 *
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public License
 *  as published by the Free Software Foundation; either version 2
 *  of the License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

package org.myorg.shr.gui.swg.display.button;

import java.awt.event.ActionListener;
import javax.swing.Action;
import org.myorg.shr.gui.io.finder.FinderResShr;
import org.myorg.shr.gui.swg.display.menuitem.MimAbs;

/**
 *
 * @author felixtheripper
 *
 * email: felixtheripper_AT_gmail.com
 * ... please remove "_AT_" from the above string to get the right email address
 *
 */

public class BtnIcnOk extends BtnAbs
{
    
    final static private String _F_STR_NAME = "Ok";

    public BtnIcnOk()
    {

        super(BtnIcnOk._F_STR_NAME,
                FinderResShr.s_getIcon(FinderResShr.STR_CHECKED, MimAbs.ICN_SIZE));
    }
    public BtnIcnOk(Action act)
    {
        super(
                act,
                "");
        super.setText(BtnIcnOk._F_STR_NAME);
        super.setIcon(FinderResShr.s_getIcon(FinderResShr.STR_CHECKED, MimAbs.ICN_SIZE));
    }
    public BtnIcnOk(ActionListener lst){
        super(BtnIcnOk._F_STR_NAME,
                FinderResShr.s_getIcon(FinderResShr.STR_CHECKED, MimAbs.ICN_SIZE));
        this.addActionListener(lst);
    }

    final public static int BTN_SIZE = 65;
}
